package com.seanzx.dp.entity;

import java.util.List;

public class Table {
    private String tableSchema;
    private String name;
    private String description;
    private List<Column> columns;

    public String getTableSchema() {
        return tableSchema;
    }

    public void setTableSchema(String tableSchema) {
        this.tableSchema = tableSchema;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<Column> getColumns() {
        return columns;
    }

    public void setColumns(List<Column> columns) {
        this.columns = columns;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static class Builder {
        private Table table;

        public Builder() {
            table = new Table();
        }

        public Builder tableSchema(String tableSchema) {
            table.tableSchema = tableSchema;
            return this;
        }

        public Builder name(String name) {
            table.name = name;
            return this;
        }

        public Builder description(String description) {
            table.description = description;
            return this;
        }

        public Builder columns(List<Column> columns) {
            table.columns = columns;
            return this;
        }

        public Table build() {
            return table;
        }
    }
}
